<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title></title>
    <script type="text/javascript">
    //<![CDATA[
    
    //]]>
    </script>
    <style type="text/css">
    	#editcollection{
            margin-top: 20px;
            border-spacing: 5px;
        }
        #editnews td{
            vertical-align: top;
        }
        #editnews tr td:first-child{
            width: 100px;
            font-weight: bold;
            font-size: 14px;
        }
    </style>
</head>
<body>
<h1 py:if="collection">Rename Collection [${collection.title}]</h1>
<h1 py:if="not collection">Create a Collection</h1>
<form method="post" action="addcollection">
	<table id="editcollection">
		<tr><td py:if="collection">New Name</td><td py:if="not collection">Name</td><td><input type="text" id="collectionname" value="${collection.title if collection else None}" name="title"/></td></tr>
		<tr><td><input type="submit" value="Submit"/></td><td><input type="button" value="Cancel"/></td></tr>
	</table>
	<input py:if="collection" type="hidden" name="cid" value="${collection.id}"/>
</form>
</body>
</html>
